www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawEntity::Linetype 属性

实体的线型名属性

IDL
__property BSTR Linetype;

例如: 取到实体的真正线型。

        MxDrawEntity ent = (MxDrawEntity)com;

        if (ent.LineType == "ByLayer")
        {
            MxDrawDatabase database = (MxDrawDatabase) axMxDrawX1.GetDatabase();
            MxDrawLayerTableRecord rec = database.GetLayerTable().GetAt(ent.Layer);

            MxDrawLinetypeTableRecord lineTypeRec = (MxDrawLinetypeTableRecord)axMxDrawX1.ObjectIdToObject(rec.LinetypeObjectId);

            MessageBox.Show(lineTypeRec.Name);
        }
        else
        {
            MessageBox.Show(ent.LineType);
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!